package com.carlinfo.hospital.service.impl;

import com.carlinfo.hospital.dao.impl.Doctor_typeDaoImpl;
import com.carlinfo.hospital.pojo.Doctor_type;
import com.carlinfo.hospital.service.Doctor_typeService;
import com.carlinfo.hospital.util.PageInfoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class Doctor_typeServiceImpl implements Doctor_typeService
{
    @Autowired
    private Doctor_typeDaoImpl doctor_typeDao;

    @Override
    public int saveOneDao(Doctor_type doctor_type)
    {
        return doctor_typeDao.saveOneDao(doctor_type);
    }

    @Override
    public List<Doctor_type> selectListDao(PageInfoUtil pageInfoUtil, Map<String, Object> condMap)
    {
        return doctor_typeDao.selectListDao(pageInfoUtil,condMap);
    }

    @Override
    public Doctor_type selectOneDao(Map<String, Object> condMap)
    {
        return doctor_typeDao.selectOneDao(condMap);
    }

    @Override
    public int updateOneDao(Doctor_type doctor_type)
    {
        return doctor_typeDao.updateOneDao(doctor_type);
    }

    @Override
    public int deleteOneDao(Map<String, Object> condMap)
    {
        return doctor_typeDao.deleteOneDao(condMap);
    }
}
